<template>
  <router-view />
</template>

<script setup>
import { useStore } from 'vuex'
import { genderateNewStyle, writeNewStyle } from '@/utils/theme'

const store = useStore()
// 重新设置样式防止刷新后丢失

genderateNewStyle(store.getters.mainColor).then(newStyle => {
  writeNewStyle(newStyle)
})
</script>

<style>

</style>
